// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 55;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You find the hall of a large Dhagan clan. They have laid claim to a small oasis, and they make their livings off of a quarry and a small patch of farmable land.";
	text2 = "When you come close, they launch into a well-practiced drill. The women working in the fields are rushed indoors. Men (and two boys) run outside with bows and line up behind a low stone fence.";
	text3 = "They are ready to fight before you even get close. You decide to turn back and leave them alone.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "There is a sandy pathway through the rocky wastes, leading west toward a large quarry. The approach is guarded. You can see packs of ka-wolves lurching around, looking for prey.";
	text2 = "They are guarding the approach to the valley to the northwest, but they are not organized creatures. They patrol at random, and they haven't yet seen you.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "You are at the south end of a maze of narrow, rocky passes, leading up into the mountains. At the far end is the northern half of the Low Dhaga, an even more unpleasant stretch of land.";
	text2 = "There is one main road leading through the pass. You can see signs of other narrow paths. Tiny ledges along steep cliff faces. Barely visible footpaths through jumbles of avalanche-prone stone.";
	text3 = "You lack a lifetime of learning how to navigate through the treacherous lands of the Rokaj. You are stuck with traveling on the main road.";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "You inspect this camp at the side of the road. It hasn't been used for at least a few days. The raids have kept travelers from feeling safe camping out on the road.";
	text2 = "You look for signs that Jaxon Scar might have been here. You find nothing.";
	code =
		sf(100 + this_sec,4,1);
		if (gf(31,24) != 2)
			rs(2);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The scorpions have been slain. The warriors bandage up their wounds, take some trophies, and head home. They are thrilled beyond words. The massive stingers they carry will buy them a lot of status.";
	text2 = "They wisely leave you the cave to search for loot. In the trash inside, you find a handful of coins and a bar of unusual metal.";
	code =
		change_coins(40,TRUE);
		change_crafting(0,0,0,1,0);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "A band of ka-wolves has spotted you. They shout an alarm. One of them runs off to the northwest, intending to warn the quarry that you are coming. Their defenses will be better now.";
	text2 = "The other ka-wolves move to block your pursuit.";
	code =
		inc_flag(155,14,1);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a cave at the end of this valley. Refuse and old, gnawed bones litter the ground outside. This cave has provided a lair for wandering beasts for centuries. A tempting trap where they can be found by Rokaj hunters.";
	text2 = "Three young Dhagan warriors are hiding behind a boulder outside, staring at the cave. They are pretty green. For example, they have no idea that you are here.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Hi._";
	text1 = "They jump out of their skins when you speak. They gather their weapons and regain their composure, giving you time to see how inexperienced they are.";
	text2 = "They don't have any idea who you are. They just see the impressive arms and armor. The boldest of the three says, _We're hunting glory, yes? Want to join in it? Good prey in the cave._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave them.";
	text1 = "You easily sneak away.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Hunting glory?_";
	text1 = "_You not Ro? Ro warriors hunt. We face danger. It's hunting glory. Proving we can be proper defenders for the clan._";
	text2 = "A younger warrior shouts, unwisely, _And raiders!_";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Doesn't getting help reduce the glory?_";
	text1 = "They look entirely confused. Apparently, in the Ro, this is not part of the calculation.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What's in the cave?_";
	text1 = "They look at each other in a way that is almost cunning. _Oh. Just scorpions._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'm too busy. Just go home._";
	text1 = "They take your advice, pack up their weapons, and leave. They mutter angrily to each other as they walk off. You suspect that tales of your cowardice will spread.";
	action = END_TALK;
	code =
		ro_faction(-2);
		violence(-1);
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Sure. I could use some more glory._";
	text1 = "The eager young men don't give you time to change your mind. They run out into the open and start shouting, drawing their prey out of the cave.";
	text2 = "They did not lie. What emerges are scorpions. Perhaps a bit larger than you expected.";
	action = END_TALK;
	code =
		ro_faction(2);
		violence(1);
		cancel_out_fight(0,1);
		make_outdoor_enc(245,269,0);
	break;

//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				